﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_department")]
    public partial class ZmDepartment : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(255)]
        public string Id { get; set; }
        [Column("parent_id")]
        [StringLength(255)]
        public string ParentId { get; set; }
        [Column("region_name")]
        [StringLength(255)]
        public string RegionName { get; set; }
        [Column("region_full_name")]
        [StringLength(255)]
        public string RegionFullName { get; set; }
        [Column("region_status")]
        [StringLength(255)]
        public string RegionStatus { get; set; }
        [Column("region_seq")]
        [StringLength(255)]
        public string RegionSeq { get; set; }
        [Column("region_code")]
        [StringLength(255)]
        public string RegionCode { get; set; }
        [Column("create_by")]
        [StringLength(255)]
        public string CreateBy { get; set; }
        [Column("sort_no")]
        [StringLength(255)]
        public string SortNo { get; set; }
        [Column("regional_level")]
        [StringLength(255)]
        public string RegionalLevel { get; set; }
        [Column("rank_name")]
        [StringLength(255)]
        public string RankName { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
        [Column("check107")]
        public int? Check107 { get; set; }
        [Column("check777")]
        public int? Check777 { get; set; }
    }
}
